<include file="Public:mainHeader" />
<script type="text/javascript">
    $('#seach').click(function(){
        $.post(
                'index.php?g=Admin&m=Menu&a=hotMenu',
                {
                    'ss':$('.title').val(),
                    'id':$('select[name=id]').val()
                }
        );
        return false;
    });
</script>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="mart15">
  <tr>
    <td width="4"><img src="__IMG_ADMIN_PATH__/gk1.png" width="4" height="39" /></td>
    <td background="__IMG_ADMIN_PATH__/gk2.png"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="23" class="xtgk2"><img src="__IMG_ADMIN_PATH__/gk_1.png" width="16" height="16" /></td>
        <td class="xtgk1">热卖菜列表</td>
      </tr>
    </table></td>
    <td width="5"><img src="__IMG_ADMIN_PATH__/gk3.png" width="5" height="39" /></td>
  </tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dca581">
  <tr>
    <td bgcolor="#FFFFFF">
	<form id="form1" name="form1" method="post" action="">
	  <table width="520" border="0" align="center" cellpadding="0" cellspacing="0" class="mart15">
	    <tr>
	      <td width="44">名称 :</td>
	      <td width="198"><input type="text" name="ss" class="title" /></td>
	      <td width="47">分类 :</td>
	      <td width="101"><select name="id">
	        <option value="0">选择分类</option>
              <foreach name="list" item="v">
                  <option value="{$v.id}"><b>{$v.name}</b></option>
              </foreach>
          </select></td>
	      <td width="130"><input type="image" id="seach" src="__IMG_ADMIN_PATH__/search.jpg" /></td>
	      </tr>
	    </table>
	  </form>
	<table width="95%" id="mytable" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#efddd2" class="mart15 color333">
      <tr>
        <td align="center" bgcolor="#f5ede6"><h1>序号</h1></td>
        <td align="center" bgcolor="#f5ede6"><h1>名称</h1></td>
          <td align="center" bgcolor="#f5ede6"><h1>所属分类</h1></td>
        <td align="center" bgcolor="#f5ede6"><h1>价格</h1></td>
        <td align="center" bgcolor="#f5ede6"><h1>总计出售</h1></td>
      </tr>
        <if condition="is_array($hot)">

        <foreach name="hot" item="a">
          <tr>
              <td align="center">{$a.u_id}</td>
              <td align="center">{$a.uname}</td>
              <td align="center">{$a.dname}</td>
              <td align="center">{$a.price}</td>
              <td align="center">{$a.amount}</td>
          </tr>
      </foreach>
            <else /> {$hot}
        </if>
    </table>

        <div style=" color: #FF6500; font-size: 14px; margin: 3px 3px 15px; padding: 3px; text-align: center;">
            {$page}
        </div>
    </td>
        </tr>
      </table></td>
  </tr>
</table>
<include file="Public:mainFooter" />